﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage_Admin.master" AutoEventWireup="true" CodeFile="GaugeList.aspx.cs" Inherits="Admin_Gauge_GaugeList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    量表管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <table style="width: 100%;">
        <tr>
            <td style="width: 210px;">
                <div style="width: 200px; height: 400px; border: solid 1px #ccc; overflow: auto;">
                    <asp:TreeView ID="tree_GaugeType" runat="server" CssClass="ht-tree" ShowLines="true" OnSelectedNodeChanged="tree_GaugeType_SelectedNodeChanged">
                        <NodeStyle ForeColor="Gray" />
                        <SelectedNodeStyle ForeColor="Red" />
                    </asp:TreeView>
                </div>
            </td>
            <td style="vertical-align: top;">
                <div class="ht-panel-search">
                    <table>
                        <tr>
                            <%--<td>目录名称：
                                </td>
                                <td>
                                    <asp:TextBox ID="txt_ModularName" runat="server" CssClass="ht-text"></asp:TextBox>
                                </td>
                                <td>目录编码：
                                </td>
                                <td>
                                    <asp:TextBox ID="txt_ModularCode" runat="server" CssClass="ht-text"></asp:TextBox>
                                </td>--%>
                            <td>
                                <asp:LinkButton ID="btn_Search" runat="server" Text="查询" CssClass="easyui-linkbutton"
                                    OnClick="btn_Search_Click" />
                                <asp:LinkButton ID="btn_Add" runat="server" Text="增加" PostBackUrl="GaugeEdit.aspx?Action=Add" CssClass="easyui-linkbutton" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="ht-panel-grid">
                    <asp:Repeater ID="RepeaterList" runat="server"
                        OnItemCommand="RepeaterList_ItemCommand"
                        OnItemDataBound="RepeaterList_ItemDataBound">
                        <HeaderTemplate>
                            <table id="grid" class="ht-grid" border="0" style="margin-top: 10px;">

                                <tr>
                                    <th>分类</th>
                                    <th>标题</th>
                                    <th style="width: 100px">状态</th>
                                    <th style="width: 100px">操作</th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("TypeTitle") %>
                                </td>
                                <td>
                                    <%#Eval("Title") %>
                                </td>
                                <td style="text-align: center;">
                                    <asp:Label ID="lbl_Valid" runat="server" Text="启用"></asp:Label>
                                    <asp:LinkButton ID="lbtn_Valid" runat="server" CommandName="Valid" CommandArgument='<%#Eval("GaugeId") %>'>修改</asp:LinkButton>
                                </td>
                                <td>
                                    <asp:LinkButton ID="lbtn_Modify" runat="server" CommandName="Modify" CommandArgument='<%#Eval("GaugeId") %>'>编辑</asp:LinkButton>
                                    <asp:LinkButton ID="lbtn_Detail" runat="server" CommandName="Detail" CommandArgument='<%#Eval("GaugeId") %>'>查看</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                       
                        </FooterTemplate>
                    </asp:Repeater>

                    <div class="ht-pager">
                        <webdiyer:AspNetPager ID="PaginateCtl" runat="server" OnPageChanged="PaginateCtl_PageChanged" />
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Footer" runat="Server">
</asp:Content>
